Repository navigation
refactor: organize src/state into subdirs/tests and eliminate GTA6 #[path] flattening (desloppify wave 5E-1) - #115
Merged
Conversation
…path] flattening (desloppify wave 5E-1) - Replace all 382 #[path = "..."] directives in or-io/src/gta6/ (346 -> 0, including script/, script/passes/, headerless/, map/, ttpf/, save/, audio/, water/), or-world-gta6/src/ (33 -> 0: edit/, index/, stream/, day/), and or-cli/src/gta6/ (3 -> 0) with standard Rust mod.rs subdirectories while preserving all public API paths. - Relocate all 145 flat #[cfg(test)] files plus copy_cut_and_paste/ and the_files_view_in_the_centre/ out of src/state/ into src/state/tests/ wired from one #[cfg(test)] pub(crate) mod tests;. - Move src/state/rpf9_tree_row_kind.rs into src/state/files_view/ (removing the upward #[path]) and group all gta6_* and rpf* production modules into src/state/gta6/ (10 subdirs) and src/state/rpf/, eliminating all 111 #[path] attributes in src/state/ and shrinking top-level entries from 412 -> 100. - Update .config/nextest.toml, xtask/src/slow_tier.rs, path-based test checks, and doc citations (0 mixed mod.rs/file+dir sibling dirs across the repo).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves 4 desloppify review items (wave 5E-1; clears Convention drift to 0 open):
convention_outlier::gta6_flat_path_style_island&package_organization::gta6_or_io_path_flattening: Replaced all 382#[path = "..."]attributes acrosscrates/io/or-io/src/gta6/(346 -> 0),crates/domain/or-world-gta6/src/(33 -> 0), andcrates/tools/or-cli/src/gta6/(3 -> 0) with standard Rustmod.rssubdirectories while preserving all public API paths.convention_outlier::src_flat_test_interleaving&package_organization::src_state_mega_flat_overload: Relocated all flat#[cfg(test)]files pluscopy_cut_and_paste/andthe_files_view_in_the_centre/intosrc/state/tests/, movedrpf9_tree_row_kind.rsintosrc/state/files_view/, and grouped allgta6_*andrpf*production modules intosrc/state/gta6/(10 subdirs) andsrc/state/rpf/(eliminating all 111#[path]attributes insrc/state/and reducing top-level entries from 412 -> 100)..config/nextest.toml,crates/tools/xtask/src/slow_tier.rs, path-based source-scan tests, and doc citations; 0 mixedmod.rs/foo.rssibling directories remain anywhere in the repo.Verification
just ready: 3,526 tests passed in 315 binaries, 0 clippy regressions (only the 4 pre-existingorigin/mainfailures).repo_tests::doc_*(doc_citations,doc_counts,doc_comments): all passed.just self-check: 140/140 passed.